package Assignment.Test1;

import java.security.PKCS12Attribute;

public class PhoneTest {
    public static void main(String[] args) {

        Phone p1 = new Phone();
        p1.setBrand("华为");
        p1.setPrice(2899);
        p1.setColor("流光蓝");
        System.out.println(p1.getBrand());
        System.out.println(p1.getPrice());
        System.out.println(p1.getColor());
        p1.Call();
        p1.sendMessage();

        Phone p2 = new Phone("Apple",8299,"灰黑");
        System.out.println(p2.getBrand());
        System.out.println(p2.getColor());
        System.out.println(p2.getPrice());
        System.out.println(p2.getClass());
        p2.Call();
        p2.sendMessage();
    }
}
